/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import Util.senhaUtil;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.bean.ManagedBean;
import org.codehaus.jettison.json.JSONException;

/**
 *
 * @author pedro
 */
@ManagedBean(name = "senhaBean")
public class SenhaBean {

    private String email;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void esqueceuSenha() {
        SenhaBean senha= new SenhaBean();
        senha.setEmail(email);
        try {
            senhaUtil.recuperaSenha(senha);
        } catch (JSONException ex) {
            Logger.getLogger(SenhaBean.class.getName()).log(Level.SEVERE, null, ex);
            
        }
    }
}
